﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace Fraining12
{
    public partial class frmMain : Form
    {
        public frmMain()
        {
            InitializeComponent();
        }
        public static bool login;
        private void frmMain_Load(object sender, EventArgs e)
        {
            frmLogin obj = new frmLogin();
            obj.ShowDialog();

            if (!login)
            {
                Application.Exit();
            }
        }

        private void ToolStripMenuItem1_Click(object sender, EventArgs e)
        {
            frmBookTypeAdd obj = new frmBookTypeAdd();
            obj.MdiParent = this;
            obj.Show();
        }

        private void ToolStripMenuItem2_Click(object sender, EventArgs e)
        {
            frmBookTypeSel obj = new frmBookTypeSel();
            obj.MdiParent = this;
            obj.Show();
        }

        private void ToolStripMenuItem3_Click(object sender, EventArgs e)
        {
            frmBookTypeSel obj = new frmBookTypeSel();
            obj.MdiParent = this;
            obj.Show();
        }

        private void ToolStripMenuItem4_Click(object sender, EventArgs e)
        {
            frmBookTypeSel obj = new frmBookTypeSel();
            obj.MdiParent = this;
            obj.Show();
        }

        private void ToolStripMenuItem5_Click(object sender, EventArgs e)
        {
            frmBookAdd obj = new frmBookAdd();
            obj.MdiParent = this;
            obj.Show();
        }

        private void ToolStripMenuItem6_Click(object sender, EventArgs e)
        {
            frmBookSel obj = new frmBookSel();
            obj.MdiParent = this;
            obj.Show();
        }

        private void ToolStripMenuItem9_Click(object sender, EventArgs e)
        {
            frmpublisherAdd obj= new frmpublisherAdd();
            obj.MdiParent = this;
            obj.Show();
        }

        private void ToolStripMenuItem10_Click(object sender, EventArgs e)
        {
            frmPublisherSel obj = new frmPublisherSel();
            obj.MdiParent = this;
            obj.Show();
        }

        private void ToolStripMenuItem11_Click(object sender, EventArgs e)
        {
            frmPublisherSel obj = new frmPublisherSel();
            obj.MdiParent = this;
            obj.Show();
        }

        private void ToolStripMenuItem12_Click(object sender, EventArgs e)
        {
            frmPublisherSel obj = new frmPublisherSel();
            obj.MdiParent = this;
            obj.Show();
        }
    }
}
